package org.fight.net;

import akka.actor.ActorRef;

/**
 * @author : DengYing
 * @CreateDate : 2017年10月27日 上午10:14:27
 * @Description ：Please describe this document
 */
public class KcpConstant {
	/** 玩家ID */
	public static final String PLAYER = "PLAYER";
	/** 战斗对象 */
	public static final String FIGHT = "FIGHT";
	
	public static final String ACTOR = "ACTOR";
	
	/** KCP */
	public static final String KCP = "KCP";
	
	/** 会话ID */
	public static final String CONV = "conv";
	/** SOCKET通道 */
	public static final String SOCKET_CHANNEL = "SOCKET_CHANNEL";
	/** 目的地 */
	public static final String TARGET_ADDRESS = "TARGET_ADDRESS";
	/** 最后写数据时间 */
	public static final String LAST_WRITE_TIME = "LAST_WRITE_TIME";
	/** 最后读数据时间 */
	public static final String LAST_READ_TIME = "LAST_WRITE_TIME";
	/** BYTE_BUF */
	public static final String BYTE_BUF = "BYTE_BUF";
	/** 下次更新时间 */
	public static final String NEXT_UPDATE_TIME = "NEXT_UPDATE_TIME";
	/** 是否需要更新 */
	public static final String NEED_UPDATE = "NEED_UPDATE";
	/** 解密钥密 */
	public static final String DECRYPTION_KEYS = "DecryptionKeys";
	/** 加密钥密 */
	public static final String ENCRYPTION_KEYS = "EncryptionKeys";
	
	
	
	
	
	
	
	
	
	
	
	/** 包分割符号 */
	public static final short PACKET_TAG = 0x712b;
	/** 包分割符占用字节数 */
	public static final int PACKET_TAG_LENGTH = 2;
	/** 包长度占用字节数 */
	public static final int PACKET_LENGTH = 4;
	/** 包校验和占用字节数 */
	public static final int PACKET_CHECK_SUM = 2;
	/** 包消息号占用字节数 */
	public static final int PACKET_COMMAND_ID = 2;
	/** 包的状态码长度 */
	public static final int PACKET_STATUS_CODE = 4;
}
